<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {
    $router->get('/', 'HomeController@index');
    $router->resource('Job',JobController::class);
    $router->resource('JobCate',JobCateController::class);
    $router->resource('Company',CompanyController::class);
    $router->resource('Resume',ResumeController::class);
    $router->resource('Setting',SettingController::class);


    //三级联动
    $router->get('getProvince', 'ChinaAreaController@getProvince');
    $router->get('getDCity', 'ChinaAreaController@getDCity');
    $router->get('getArea', 'ChinaAreaController@getArea');
    //获取所有分类职位
    $router->get('getJobCate', 'JobCateController@getJobCate');
    //获取所有公司
    $router->get('getAllCompany', 'CompanyController@getAllCompany');
});
